import request from "../utils/request";
// 登录
export const checklogin = (data: any) => {
  return request.post('teacher/checklogin', data)
}
// 单个考试信息
export const  getTest = (params: any) => {
  return request.get('test/get', params)
}
// 获取考试结果 
export const  getForResult = (params: any) => {
  return request.get('test/getForResult', params)
}
// 题库管理-------------------------------------
// 题库管理列表 /api/database/list
export const databaselist=(params:any)=>{
  return request.get('database/list',params)
}
// 删除题库 
export const databaseDel=(params:any)=>{
  return request.get('database/delete',params)
}
// 添加题库  
export const databaseAdd = (data: any) => {
  return request.post('database/add', data)
}
// 根据题库id获取试题列表 
export const databasequestionlist = (params: any) => {
  return request.get('databasequestion/list', params)
}
// 题库试题添加 
export const databasequestionadd = (data: any) => {
  return request.post('databasequestion/add', data)
}
// 题库试题删除 api/
export const databasequestiondel = (params: any) => {
  return request.get('databasequestion/delete', params)
}
// 老师列表 
export const teacherList = (params: any) => {
  return request.get('teacher/list', params)
}
// 教师范围
export const getLimit=(params:any)=>{
  return request.get("test/getlimit",params)
}
// 可见老师添加
export const  testlimit=(params:any)=>{
  return request.post("testlimit/add",params)
}
// 根据id下载单个题库试题列表
export const exportExcel=(params:any)=>{
  return request.get("databasequestion/exportExcel",params)
  
}
// 批量添加
export const databasequestionaddlist = (data: any) => {
  return request.post('databasequestion/addlist', data)
}
// 部门管理---------------------
// 部门列表
export const departmentlist=(params:any)=>{
  return request.get('department/list',params)
}
// 添加部门 
export const departmentAdd = (data: any) => {
  return request.post('department/add', data)
}
// 删除部门 
export const departmentdel=(params:any)=>{
  return request.get('department/delete',params)
}
